<template>
  <BarChart
    v-if="studentSituationValue === '得分率分布'"
    :rateArray
    :knowledgeInfo
    :studentSituationValue
    :isLoading
  />
  <ScatterChart
    v-else
    :knowledgeInfo
    :doubleDimensionData
    :studentSituationValue
    :isLoading
  />
</template>
<script setup>
import BarChart from './BarChart.vue'
import ScatterChart from './ScatterChart.vue'

defineProps({
  rateArray: Array,
  knowledgeInfo: Object,
  doubleDimensionData: Array,
  studentSituationValue: String,
  isLoading: Boolean
})
</script>
